package o;

import java.util.ArrayList;
import java.util.List;

public class erk {
    private static erk ˊ = new erk();
    private List<String> ˋ = new ArrayList();
    private long ˎ = 0;

    public static erk ˎ() {
        return ˊ;
    }

    public synchronized void ˋ(long j) {
        if (this.ˎ == 0) {
            this.ˎ = j;
        }
    }

    public synchronized void ˊ(long j) {
        String valueOf = String.valueOf(j);
        if (!dof.ॱ(valueOf)) {
            this.ˋ.add(valueOf);
            if (System.currentTimeMillis() - this.ˎ >= 10000) {
                ˊ();
            }
        }
    }

    public synchronized void ˊ() {
        if (this.ˋ.size() > 0) {
            StringBuilder stringBuilder = new StringBuilder();
            for (int i = 0; i < this.ˋ.size(); i++) {
                stringBuilder.append((String) this.ˋ.get(i));
                if (i < this.ˋ.size() - 1) {
                    stringBuilder.append(",");
                }
            }
            esn.ˎ(stringBuilder.toString());
            this.ˎ = 0;
            this.ˋ.clear();
        }
    }
}
